<template>
	<!-- 协议政策 -->
	<view class="text" v-html="data"></view>
</template>

<script>
	export default {
		data() {
			return {
				data:''
			};
		},
		onLoad(e) {
			if(e.t == 0){
				uni.setNavigationBarTitle({
					title:'用户协议'
				})
				this.$api.agreement({},1).then(res=>{
					this.data = res.data
				})
			}else{
				uni.setNavigationBarTitle({
					title:'隐私政策'
				})
				this.$api.policy({},1).then(res=>{
					this.data = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
.text{
	min-width: 100wv;
	min-height: 100vh;
	background-color: #fff;
	padding: 12rpx 22rpx 34rpx 30rpx;
	font-size: 30rpx;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #666666;
	line-height: 70rpx;
}
</style>
